package cn.tedu.page.mapper;

import cn.tedu.page.pojo.Emp;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface EmpMapper {
    @Select("select * from emp order by empno")
    List<Emp> findAll();
    @Insert("insert into emp values (#{empno},#{ename},#{job},#{mgr},#{hirdate},#{sal},#{comm},#{deptno})")
    int addEmp(Emp emp);
    // 自行练习删除 修改 按id查询等操作


}
